package com.scorpio.goods.mapper;


import com.scorpio.basic.dto.NameIdDTO;
import com.scorpio.common.dao.BaseDao;
import com.scorpio.goods.domain.GoodsSkuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品sku分组Mapper接口
 *
 * @author scorpio
 * @date 2021-10-29
 */
@Mapper
public interface GoodsSkuMapper extends BaseDao<GoodsSkuEntity> {

    List<GoodsSkuEntity> selectByids(@Param("ids") List<Long> ids);

    List<GoodsSkuEntity> selectByGoods(@Param("goodsId") Long goodsId);

    int updateSort(@Param("id") Long id, @Param("sort") Integer sort);


    int updateDeleteNotContain(@Param("goodsId") Long goodsId, @Param("ids") List<Long> ids);

    List<GoodsSkuEntity> selectDeleteNotContain(@Param("goodsId") Long goodsId, @Param("ids") List<Long> ids);

    int updateDelete(@Param("ids") Long[] ids);

}
